import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/video_geturl_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class VideoGeturlEntity {

	@JSONField(name: "vod_play_info")
	VideoGeturlVodPlayInfo? vodPlayInfo;
	double? duration;
  
  VideoGeturlEntity();

  factory VideoGeturlEntity.fromJson(Map<String, dynamic> json) => $VideoGeturlEntityFromJson(json);

  Map<String, dynamic> toJson() => $VideoGeturlEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class VideoGeturlVodPlayInfo {

	@JSONField(name: "BackupPlayUrl")
	String? backupPlayUrl;
	@JSONField(name: "Bitrate")
	int? bitrate;
	@JSONField(name: "Codec")
	String? codec;
	@JSONField(name: "Definition")
	String? definition;
	@JSONField(name: "Duration")
	double? duration;
	@JSONField(name: "FileId")
	String? fileId;
	@JSONField(name: "FileType")
	String? fileType;
	@JSONField(name: "Format")
	String? format;
	@JSONField(name: "Height")
	int? height;
	@JSONField(name: "MainPlayUrl")
	String? mainPlayUrl;
	@JSONField(name: "Md5")
	String? md5;
	@JSONField(name: "Quality")
	String? quality;
	@JSONField(name: "Size")
	int? size;
	@JSONField(name: "Volume")
	dynamic volume;
	@JSONField(name: "Width")
	int? width;
  
  VideoGeturlVodPlayInfo();

  factory VideoGeturlVodPlayInfo.fromJson(Map<String, dynamic> json) => $VideoGeturlVodPlayInfoFromJson(json);

  Map<String, dynamic> toJson() => $VideoGeturlVodPlayInfoToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}